package org.ueg.model;

import java.io.Serializable;
import java.util.List;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.Table;


@Entity
@DiscriminatorValue(value = "Funcionario")
@Table (schema="Trabalho")
public class Funcionario extends Pessoa implements Serializable  {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ManyToMany
	@JoinTable(name="funcionario_departamento")
	private List<Departamento> departamento;
}
